package com.gzrhhscd.service.impl;

import com.gzrhhscd.Pojo.DeptLog;
import com.gzrhhscd.mapper.DeptLogMapper;
import com.gzrhhscd.service.DeptLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DeptLogServiceImp implements DeptLogService {
    @Autowired
    DeptLogMapper deptLogMapper;
@Transactional(propagation=Propagation.REQUIRES_NEW)
    @Override
    public void insert(DeptLog deptLog) {
        deptLogMapper.insert(deptLog);
    }
}
